Skip to content

Conversation

@wbernoudy
Copy link
Member

@wbernoudy wbernoudy commented Nov 21, 2025

(still working on the symbol part)

MatrixMultiply symbol now handles vector-vector, matrix-vector, and ndarray-vector multiplication. The matmul method will also add in Broadcast symbols to one or both operands to handle the rest of the implicit broadcasting behavior that np.matmul supports.

@wbernoudy wbernoudy requested a review from arcondello November 21, 2025 23:29
Copy link
Member

@arcondello arcondello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic all seems good to me with the possible exception of the size_from_shape() method and dynamic shapes.

Otherwise just a few nits.

@arcondello arcondello added the enhancement New feature or request label Nov 26, 2025
@arcondello arcondello linked an issue Nov 26, 2025 that may be closed by this pull request
and use it in MatrixMultiplyNode, along with other small code
improvements. Also fixed a bug in the ValuesInfo for MatrixMultiplyNode
as it was not always calculating the contracted axis size correctly.
@arcondello
Copy link
Member

Just occurred to me, we should probably overload .__matmul__() as well

@arcondello arcondello merged commit cd710e0 into dwavesystems:main Nov 28, 2025
14 checks passed
@wbernoudy wbernoudy deleted the feature/matmul-symbol branch November 28, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding matmul symbol or similar

2 participants